# Contributor: Daniele Debernardi <drebrez@gmail.com>
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
pkgname=eolie
pkgver=0.9.99
pkgrel=0
pkgdesc="Web browser for GNOME"
url="https://gitlab.gnome.org/World/eolie"
arch="noarch !mips !mips64" # blocked by webkit2gtk
license="GPL-3.0-or-later"
depends="webkit2gtk gtkspell3 py3-cairo py3-gobject3"
makedepends="meson python3 glib-dev gobject-introspection-dev gtk+3.0-dev"
checkdepends="desktop-file-utils appstream-glib"
subpackages="$pkgname-lang"
source="https://adishatz.org/eolie/eolie-$pkgver.tar.xz
	dont-require-py3-gettext-support.patch
	"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="fa64d5908438536b501bbcabb5d362cbf2f8ea1061a6911cf4c1078d9753deb54e8fc97c8a07e80d6b83728bf71d51c6d647e3bd0cc0a3eed2aa4c70b46642d6  eolie-0.9.99.tar.xz
468ac64649ca6fcf40ca3de4d1d19bcb9851a0486eafc5773bd291cbe417a6b42f3965e385ae774862d4f0a0408e3eede36548eee75b6643953b1ebde17fa4b7  dont-require-py3-gettext-support.patch"
